#{extends 'mana-main.html' /}
#{set infodActive: "active" /}
#{set title:"文章编辑"/}
#{set 'moreStyles' }
<style type="text/css" media="screen">
    .article{
        margin-top: 80px;
    }
    #btn{
        margin-left: 0px;;
    }
</style>
#{/set}
<div class="article row">
    <ul class="nav nav-tabs">

        <li #{if type==1}class="active"#{/if}>
            <a href="@{Infos.editorLink(1)}">关于我们</a>
        </li>
        <li  #{if type==2}class="active"#{/if}><a href="@{Infos.editorLink(2)}">联系我们</a></li>
        <li  #{if type==3}class="active"#{/if}><a href="@{Infos.editorLink(3)}">加入我们</a></li>
        <li  #{if type==4}class="active"#{/if}><a href="@{Infos.editorLink(4)}">意见反馈</a></li>
        <li  #{if type==5}class="active"#{/if}><a href="@{Infos.editorLink(5)}">免责声明</a></li>
        <li  #{if type==0}class="active"#{/if}><a href="@{Infos.editorLink(0)}">友情链接</a></li>

    </ul>
    <form action="@{Infos.editWebsiteInfo}" method="post" class="span10 offset1">
        <div class="control-group">
            <label class="control-label" for="articleContent">内容</label>
            <div class="controls">
                <script id="articleContent" name="content" type="text/plain">${cont.raw()}</script>
                <input type="hidden" value="${type}" name="type"/>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">&nbsp;</label>
            <div class="controls">
                <input type="submit" class="btn btn-primary" id="btn">
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="@{'/public/ueditor/ueditor.config.js'}"></script>
<script type="text/javascript" src="@{'/public/ueditor/ueditor.all.js'}"></script>
<script type="text/javascript">
    var editor = new UE.ui.Editor({initialFrameHeight:100
        ,toolbars:[]});
    editor.render("articleDescription");
    var ue = UE.getEditor('articleContent');

</script>